#1、列表中大于0的偶数
# list_nummber = [2,-1,3,-6,8,11,7]
# def num1(nums):
#     return list(filter(lambda item:item>0 and item % 2 == 0,nums))
# a = num1(list_nummber)
# print(a)
#2、
list_price = [100,200,300]
# tax_price = [105.0,210.0,315.0]
func_tax = lambda price:price * 1.05

def apply_tax(func,list_price):
    return list(map(func,list_price))
tax_price = apply_tax(func_tax,list_price)
# print(tax_price)
#3、
list01=[1,2,3,4,5,6]
filter_func = lambda item:item%2 == 0
map_func = lambda x:x**2
def gaojie(fun1,fun2,list01):
    filter_list = list(filter(fun1,list01))
    map_list = list(map(fun2,filter_list))
    return map_list
print(gaojie(filter_func,map_func,list01))